<template>
  <div class="app">
    <tabs :tabs="tabs" class="tab-container" @change="onTabChange" :scrollable="true">
      <div>This is first tab</div>
      <div>This is second tab</div>
      <div>This is third tab</div>
    </tabs>
  </div>
</template>

<script>
import Tabs from "./tabs";
import "normalize.css"

export default {
  name: "app",
  components: {
    Tabs
  },
  data() {
    return {
      tabs: [
        {
          label: "关注"
        },
        {
          label: "推荐"
        },
        {
          label: "最新"
        }
      ]
    };
  },
  methods: {
    onTabChange(tabIndex) {
      console.log(tabIndex);
    }
  }
};
</script>

<style lang="less" scoped>
.app {
  .tab-container {
    height: 100vh;
  }
}
</style>
